function autoRem(){//rem布局
    var obj = document.getElementsByTagName('html')[0],
        w = obj.getBoundingClientRect().right,                     
        scale = w/640;

    obj.style.fontSize = 100*scale+'px';
};
window.onresize=function(){
	autoRem();
};

var module1=(function(mod,$){
	mod.isMob=function(){// 判断是否为移动端运行环境
		var mob='',v=window.navigator.userAgent;
		if(/AppleWebKit.*Mobile/i.test(v) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(v))){
			if(window.location.href.indexOf("?mobile")<0){
				try{
					mob='true';
				}catch(e){

				}
			}
		}else{
			mob='false';
		}
		return mob;
	};
	mod.getQueryString=function(name){//获取链接参数
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg);
		if (r != null) return unescape(r[2]);
		return null;
	};


	return mod;
})(window.module1 || {},jQuery);

var mob=module1.isMob();
var qStr=module1.getQueryString('page');


















